package com.xc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.domain.pojo.SysRole;
import com.xc.service.SysRoleService;
import com.xc.mapper.SysRoleMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{

    @Override
    public Page<SysRole> roleList(int page, int pageSize) {

        Page<SysRole> rowPage = new Page(page, pageSize);

        QueryWrapper<SysRole> queryWrapper = new QueryWrapper<>();
        rowPage = this.baseMapper.selectPage(rowPage, queryWrapper);
        return rowPage;
    }
}




